package com.le.tester.javaThink.common;

import static java.util.stream.IntStream.*;

/**
 * 描述：重复
 */
public class Repeat {
    public static void repeat(int n, Runnable action) {
        range(0, n).forEach(o -> action.run());
    }
}
